cmake_minimum_required(VERSION 3.16.3)

project(visualization_tool)

set(CMAKE_CXX_STANDARD 17)

# Find OpenCV
find_package(OpenCV COMPONENTS core imgproc highgui imgcodecs)
# Find OpenGL
find_package(OpenGL)
# Find Eigen
find_package(Eigen3)

find_package(glfw3)

message("Found:" ${glfw3_LIBRARIES})
#add_subdirectory(open_source/glfw)

add_executable(visualization_tool
        main.cpp)
#        src/scene/LidarPoints.cpp
#        src/scene/CameraImage.cpp
#        src/scene/EgoTrajectory.cpp
#        src/scene/ObjectDetection.cpp)


target_include_directories(visualization_tool PUBLIC
        ${EIGEN3_INCLUDE_DIR}
        ${OPENGL_INCLUDE_DIR}
        ${OpenCV_INCLUDE_DIRS}
        ${glfw3_INCLUDE_DIRS}
        ${CMAKE_CURRENT_SOURCE_DIR}
        ${CMAKE_CURRENT_SOURCE_DIR}/src
        ${CMAKE_CURRENT_SOURCE_DIR}/src/renderer
        ${CMAKE_CURRENT_SOURCE_DIR}/src/platform
        ${CMAKE_CURRENT_SOURCE_DIR}/src/scene
        )


target_link_libraries(visualization_tool
        ${OpenCV_LIBRARIES}
        ${OPENGL_LIBRARIES}
        ${EIGEN3_LIBRARIES}
        glfw
        )